<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

namespace Home\Controller;
use OT\DataDictionary;

/**
 * 前台首页控制器
 * 主要获取首页聚合数据
 */
class GoodsController extends HomeController {

	//系统首页
    public function index(){
             
        $this->display();
    }
    
    //系统首页
    public function goodslist(){
    
        //显示所有的商品
        $list = M('goods')->table('xgw_goods A')
                        ->join('xgw_picture U ON A.cover_id=U.id')->select();
        
        $this->assign('list', $list);
         
        $this->meta_title = '商家管理';
        
    
        $this->display();
    }

}